package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.BindElderDto;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.dto.QueryIoTDataDto;
import com.zzyl.nursing.vo.DataPointVO;
import com.zzyl.nursing.vo.MyElderListVo;
import com.zzyl.nursing.vo.MyElderVo;

import java.util.List;
import java.util.Map;

/**
 * @Author xiqi
 */
public interface MemberUserService extends IService<FamilyMemberElder> {
    /**
     * 客户绑定老人,将老人的基本信息保存到老人与家属表的中间表
     */
    public void bindElder(BindElderDto dto);
    /**
     * 查询自己的老人列表
     * @return
     */
    List<MyElderVo> selectMyElder();
    /**
     * 查询老人列表
     * @return
     */
    List<MyElderListVo> selectElderList();

    /**
     * 查询健康数据
     * @param dto
     * @return
     */
    Map<String,Object> QueryDevicePropertyStatus(DeviceDto dto);

    /**
     * 按天统计查询指标数据
     * @param dto
     * @return
     */
    List<DataPointVO> QueryDeviceDataListByDay(QueryIoTDataDto dto);

    /**
     * 按周统计查询指标数据
     * @param dto
     * @return
     */
    List<DataPointVO> QueryDeviceDataListByWeek(QueryIoTDataDto dto);
}